let pageMethod = require('./src/util/getPages.js');
let pages = {}
pages = pageMethod.pages();
module.exports = {

  pluginOptions: {
    webpack: {
      dir: [
        './webpack'
      ]
    }
  },
  lintOnSave: false, //禁用eslint
  productionSourceMap: false,
  // eslint-disable-next-line no-undef
  pages,
  devServer: {
    index: 'index.html', //默认启动serve 打开page1页面
    open: process.platform === 'darwin',
    host: '',
    port: 8080,
    https: false,
    hotOnly: false,
    proxy: {
      '/api':{
          // target:'http://jsonplaceholder.typicode.com',
          target: 'http://localhost:5000/api/',
          changeOrigin:true,
          pathRewrite:{
              '^/api':''
          }
      }
  },
    }
  }

